import scrapy


class TutuSpider(scrapy.Spider):
    name = 'tutu'
    allowed_domains = ['https://xiaoguotu.to8to.com/tuce/']
    start_urls = ['https://xiaoguotu.to8to.com/tuce/p_1.html']

    def parse(self, response):
        pru_list = response.xpath('//div[@class="item"]')
        for pru in pru_list:
            con_name = pru.xpath('.//div/a/text()').extract_first()

            print(con_name)
            con_id = scrapy.Field()
            con_url = scrapy.Field()
            nick_name = scrapy.Field()
            pic_url = scrapy.Field()
            pic_name = scrapy.Field()
